<?php include("srv_header.php"); ?>
<link rel='stylesheet' type='text/css' href='../calendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../calendar/fullcalendar.print.css' media='print' />
<link rel='stylesheet' href='../stuIntranet/style/style.css' />
<script type='text/javascript' src='../jquery/jquery-1.7.1.min.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui-1.8.11.custom.min.js'></script>
<script type='text/javascript' src='../calendar/fullcalendar.min.js'></script>
<script type='text/javascript'>

function gup( name )
{ 
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 
var regexS = "[\\?&]"+name+"=([^&#]*)"; 
var regex = new RegExp( regexS ); 
var results = regex.exec( window.location.href ); 
if( results == null ) return ""; else return results[1];
}
 
 
 
    
    
    	$(document).ready(function() { 
		
		$('#calendar').fullCalendar({
			editable: false,
			defaultView: "agendaWeek",
			events: "../calendar/mi_myWeek.php?imp="+gup("imp"),
			minTime: 8,
			maxTime: 21,
			weekends: false,
			header: {
				left: 'title',
				center: '',
				right: ''
			},
			eventDrop: function(event, delta) {
				alert(event.title + ' was moved ' + delta + ' days\n' +
					'(should probably update your database)');
			},
			eventMouseover: function(event, jsEvent, view) {
				
			},
			loading: function(bool) {
				if (bool) $('#loading').show();
				else $('#loading').hide();
			}
			
		});
		
	});

</script>
<style type='text/css'>

	body {
		font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
		}
		
	#loading {
		position: absolute;
		top: 5px;
		right: 5px;
		}

	#calendar {
		width: 900px;
		margin: 0 auto;
		}

</style>
<div id="wrapper">
	<script type="text/javascript"></script>


	<div id='loading' style='display:no	ne'>loading...</div>
	<div id='calendar'></div>

</div>
<?php include("srv_footer.php")?>


